﻿@{
    ViewBag.Title = "LoginIn";
    Layout = "~/Views/Shared/_LayoutSite.cshtml";
}
<script type="text/javascript">
    var jqmainmenu_handle;
    $(document).ready(function () {
        //Layout框架初始化
        var mLayout = $("#layout1_container").layout({
            name: "outer",
            north__paneSelector: ".outer-north",
            south__paneSelector: ".outer-south",
            center__paneSelector: ".outer-center",
            north__resizable: false,
            north__closable: false,
            north__spacing_open: 0,
            north__size: 55,

            south__resizable: false,
            south__closable: false,
            south__spacing_open: 0,
            south__size: 28

        });

        var midLayout = $("#login_content").layout({
            name: "middle",
            north__paneSelector: ".middle-north",
            north__resizable: false,
            north__closable: false,
            north__spacing_open: 0,
            north__size: 45,

            center__paneSelector: ".middle-center"
        });

        midLayout.allowOverflow('north');

        //使ajax功能不去缓存执行，每次必须去服务器执行
        $.ajaxSetup({ cache: false });

        //用户信息回显
        $("#menu_bar_aside p").html("Hello，" + "@HttpContext.Current.User.Identity.Name.ToString()");

        //主菜单生成
        var menujsonobj = eval("(" + '@Html.Raw(ViewData["menuNodeStr"].ToString())' + ")");
        loadMenu(menujsonobj.MenuNodes, document.getElementById("menu_bar_menu"));
        jqmainmenu_handle = $("#jqmainmenu").superfish({ delay: 300, speed: "fast", speedOut: 0 });
        //        $("#jqmainmenu").menu({ position: { at: "left bottom"} });
        //        $("#jqmainmenu").menu({
        //            select: function (event, ui) { handleMainmenuClick(event, ui); }
        //        });
        $("input[type=submit]").button();

        //菜单处理
        $("#jqmainmenu li").click(function () {
                handleMainmenuClick($(this));
         });

    });

</script>
<div id="menu_bar" class="middle-north">
    <div id="menu_bar_aside">
        <form action="@Url.Content("~/BodyGUI/LoginOut")"  method="post">
        <p>
            Hello，用户</p>
        <input type="submit" value="退出" />
        </form>
    </div>
    <div id="menu_bar_menu">
    </div>
</div>
<iframe id="contentFrame" class="middle-center">
</iframe>




